//
//  LoginView.h
//  eticket
//
//  Created by AnhQuocNguyen on 4/17/13.
//  Copyright (c) 2013 SoinMedia. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ForgetView.h"
@protocol loginViewDelegate;
@interface LoginView : UIView<UITextFieldDelegate, forgetViewDelegate>{
    
    IBOutlet UITextField *_txtEmail;
    IBOutlet UITextField *_txtPass;
    IBOutlet UIButton *_btnSubmit;
    
    UITextField *remClickText;
    
    
    //hud
    MBProgressHUD *mHud;
    BOOL mLoading;
    NSInteger _countTimeout;
    
    ForgetView *_forgetView;
}

@property (nonatomic, assign) id <loginViewDelegate> loginViewDelegate;

- (void)setupLoginView;

- (IBAction)btnSubmit_Clicked:(id)sender;

- (IBAction)btnForgetPassword_Clicked:(id)sender;

- (void)textFieldResignFirstResponder;
@end


@protocol loginViewDelegate <NSObject>

@optional
- (void)loginView:(LoginView *)loginView didLoginSuccessfull:(NSString *)fullName;
- (void)loginView:(LoginView *)loginView tapForgetPassword:(ForgetView *)forgetView;
- (void)loginView:(LoginView *)loginView forgetViewBack:(ForgetView *)forgetView;
@end